import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

import { ApiProperty } from '@nestjs/swagger';
import { BaseEntity } from '../base.entity';

@Entity({ name: 'sys_font_list' })
export default class SysFontList extends BaseEntity {
  @PrimaryGeneratedColumn()
  @ApiProperty()
  id: number;

  @ApiProperty()
  @Column()
  name: string;

  @ApiProperty()
  @Column()
  code: string;

  @ApiProperty()
  @Column()
  preview: string;

  @ApiProperty()
  @Column()
  source: string;

  @ApiProperty()
  @Column()
  download: string;

  @ApiProperty()
  @Column()
  description: string;

  @ApiProperty()
  @Column()
  version: string;

  @ApiProperty()
  @Column()
  license: string;
}
